package cn.yuan.xiaoyu.personmodule.activity;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;

import butterknife.Bind;
import butterknife.OnClick;
import cn.yuan.xiaoyu.R;
import cn.yuan.xiaoyu.commonmodule.activity.BaseActivity;
import cn.yuan.xiaoyu.commonmodule.utils.StatusBarCompatUtils;

/**
 * Created by yukuoyuan on 2017/3/1.
 * 这是一个个人中心的界面
 */
public class PersonCenterActivity extends BaseActivity {
    @Bind(R.id.iv_toolbar_left)
    ImageView ivToolbarLeft;
    @Bind(R.id.forum_context)
    WebView forumContext;
    String url = "http://www.baidu.com";

    @Override
    protected void bindPresenter() {

    }

    @Override
    protected void initData(Bundle extras) {
        forumContext.loadUrl(url);
    }

    @Override
    public int getContentLayout() {
        return R.layout.activity_person_center;
    }

    @Override
    protected void initToolbar() {
        StatusBarCompatUtils.compat(this);
        ivToolbarLeft.setVisibility(View.VISIBLE);
    }

    @OnClick({R.id.iv_toolbar_left, R.id.iv_toolbar_title})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.iv_toolbar_left:
                onBackPressed();
                break;
            case R.id.iv_toolbar_title:
                break;
        }
    }
}
